<script type="text/javascript">
	$(function() {
	    $.fn.dataGridOptions.formSubFun("#form",'/modules/additional/newActivityPlan/doNewActivityPlanEdit.html',"修改成功！","修改失败！");
	});
</script>
<style>
.hide{display:none;}
.sForm .ipt{margin-left:155px;}
.sForm .ipt1{margin-bottom:20px;margin-left:155px;}
.sForm .lab{width:139px;}
</style>
<div class="popForm sForm">
    <form id="form"  method="post">

		<div class="formitm">
			<label class="lab">活动名称：</label>
			<div class="ipt">
				<input type="text" name="name" class="w200 easyui-validatebox" data-options="required: true" maxlength="10"  value="${activityPlan.name!}"/>
				<b>*</b>
			</div>
		</div>

    	<div class="formitm">
		     <label class="lab">活动环节名称：</label>
		     <div class="ipt">
				 <select name="tache" id="tache">
					 <option  value="register" <#if activityPlan.tache == "register">selected="selected"</#if> >注册环节</option>
					 <option  value="invite" <#if activityPlan.tache == "invite">selected="selected"</#if>>邀请好友环节</option>
					 <option  value="tender" <#if activityPlan.tache == "tender">selected="selected"</#if>>投标环节</option>
					 <option  value="by_month_tender_success" <#if activityPlan.tache == "by_month_tender_success">selected="selected"</#if>>按月投标环节</option>
					 <option  value="first_tender" <#if activityPlan.tache == "first_tender">selected="selected"</#if>>第一次投标环节</option>
					 <option  value="sign" <#if activityPlan.tache == "sign">selected="selected"</#if>>签到环节</option>
					 <option  value="verify_full_borrow_success" <#if activityPlan.tache == "verify_full_borrow_success">selected="selected"</#if>>满审成功环节</option>
					 <option  value="be_accomplished" <#if activityPlan.tache == "be_accomplished">selected="selected"</#if>>大功告成奖</option>
					 <option  value="synthetic_aperture" <#if activityPlan.tache == "synthetic_aperture">selected="selected"</#if>>先声夺人奖</option>
					 <option  value="gamble_at_high_stakes" <#if activityPlan.tache == "gamble_at_high_stakes">selected="selected"</#if>>一掷千金奖</option>
					 <option  value="automatic_rebate" <#if activityPlan.tache == "automatic_rebate">selected="selected"</#if>>客户投资自动返利</option>
				 </select>
		     	<b>*</b>
		     </div>
		</div>

		<div class="formitm">
		     <label class="lab">是否启用：</label>
		     <div class="ipt">
		     	<input type="radio" id="status" class="xj-hongbao" value="0" name="status" <#if activityPlan.status == 0>checked="checked"</#if>>启用
		     	<input type="radio" id="status" class="xn-hongbao" value="1" name="status" <#if activityPlan.status == 1>checked="checked"</#if>>不启用
		     </div>
		</div>
		<div class="formitm">
			<label class="lab">活动开始时间：</label>
			<div class="ipt">
				<input type="text" name="startTime" id="startTime" value="${activityPlan.startTime?string('yyyy-MM-dd HH:mm:ss')!}" onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'endTime\')}',dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})" class="searchTime"/>
				<b>*</b>
			</div>
		</div>
		<div class="formitm">
			<label class="lab">活动结束时间：</label>
			<div class="ipt">
				<input type="text" name="endTime" id="endTime" value="${activityPlan.endTime?string('yyyy-MM-dd HH:mm:ss')!}" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'startTime\')}',dateFmt:'yyyy-MM-dd HH:mm:ss',readOnly:true})" class="searchTime"/>
				<b>*</b>
			</div>
		</div>
		<div class="formitm">
			 <label class="lab">活动描述：</label>
			 <div class="ipt">
				<textarea rows="3" cols="50" maxlength="250" name="description">${activityPlan.description!}</textarea>
			 </div>
		</div>
		<hr>
		<div class="formitm">
			 <label class="lab">添加时间：</label>
			 <div class="ipt">
				${activityPlan.createTime?string('yyyy-MM-dd HH:mm:ss')!}
			 </div>
		</div>
		<input type="hidden" name="createTime" value="${activityPlan.createTime?string('yyyy-MM-dd HH:mm:ss')}">
		<input type="hidden" name="id" value="${activityPlan.id!}">
	</form>
</div>